package com.zj.osm.view.navigation

import com.zj.osm.mvp.BasePresenter

/**
 * <pre>
 *     author : luhenchang
 *     e-mail : 1276998208@qq.com
 *     time   : 2020/04/22
 *     desc   : 版权所有
 *     version: 1.0
 * </pre>
 */
public class NavigationActivityPresenter : BasePresenter<NavigationActivityView>() {
    var navigationModule: NavigationModel? = null

    //初始化赋值
    init {
        navigationModule = NavigationModel()
    }

    /**
     * 获取所有点
     * @param project
     */
    fun getPointsList(projectId: Long) {
        if (navigationModule != null) {
            var pointsList = navigationModule!!.getPoints(projectId)
            view.initPoints(pointsList)
            //动画平移到当前位置

        }
    }

}